package com.du.design.status;

import lombok.Data;

import java.util.List;

/**
 * @desc:
 * @author: shuangdu
 * @date: 2021/9/7
 * @since: 1.8
 */
@Data
public class NodeChain {

    private String name;

    private NodeChain pre;

    private NodeChain next;

    private Boolean start = Boolean.FALSE;

    private Boolean end = Boolean.FALSE;

    private List<String> handlerUser;

    public String toString() {
        return "name" + this.name + ", pre:"+ (pre == null?"null":pre.getName()) + ",next:"+(next == null?"null":next.getName());
    }
}
